<?php
// /str_getcsv — 解析一行 CSV 字符串为一个数组 
/*str_getcsv(
    string $string,
    string $separator = ",",
    string $enclosure = "\"",
    string $escape = "\\"
): array
*/
$str='PHP,Java,Python,Kotlin,Swift';
$data=str_getcsv($str);
var_dump(
    $data
);